package com.wing.web.excel;

import lombok.Data;

import java.util.Objects;

/**
 * 需求计划 VO
 *
 * @author
 */
@ExcelIn(sheetName = "需求计划导入模板")
@Data
public class DemandPlanExcelln {
    /**
     * 工厂名称
     */
    @ExcelIn(title = "工厂名称")
    private String factoryName;

    /**
     * 物料编码
     */
    @ExcelIn(title = "物料编码")
    private String skuCode;
    /**
     * 物料描述
     */
    @ExcelIn(title = "物料描述")
    private String skuDescription;
    /**
     * 采购组名称
     */
    @ExcelIn(title = "采购组织")
    private String purchaseTissue;
    /**
     * 采购组名称
     */
    @ExcelIn(title = "采购组名称")
    private String purchaseTissueName;
    /**
     * 物料单位
     */
    @ExcelIn(title = "物料单位")
    private String defaultUnit;
    /**
     * 物料类型
     */
    @ExcelIn(title = "物料类型")
    private String materialType;
    /**
     * 计划接收时间
     */
    @ExcelIn(title = "计划接收时间",isTrim = false)
    private String planReceiveTime;
    /**
     * 供应商编码
     */
    @ExcelIn(title = "供应商编码")
    private String code;

    /**
     * 三方仓库存
     */
    @ExcelIn(title = "三方仓库存")
    private String tripartiteStorage;
    /**
     * 近三个月平均到货
     */
    @ExcelIn(title = "近三个月平均到货")
    private String averageArrival;
    /**
     * 预测需求数
     */
    @ExcelIn(title = "预测需求数")
    private String demandNumber;

    /**
     * 计划时间
     */
    @ExcelIn(title = "计划时间")
    private String planTime;

    @Override
    public String toString() {
        return "DemandPlanExcelln{" +
                "factoryName='" + factoryName + '\'' +
                ", skuCode='" + skuCode + '\'' +
                ", purchaseTissue='" + purchaseTissue + '\'' +
                ", purchaseTissueName='" + purchaseTissueName + '\'' +
                ", defaultUnit='" + defaultUnit + '\'' +
                ", materialType='" + materialType + '\'' +
                ", code='" + code + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DemandPlanExcelln that = (DemandPlanExcelln) o;
        return Objects.equals(factoryName, that.factoryName) && Objects.equals(skuCode, that.skuCode) && Objects.equals(purchaseTissue, that.purchaseTissue) && Objects.equals(purchaseTissueName, that.purchaseTissueName) && Objects.equals(defaultUnit, that.defaultUnit) && Objects.equals(materialType, that.materialType) && Objects.equals(code, that.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(factoryName, skuCode, purchaseTissue, purchaseTissueName, defaultUnit, materialType, code);
    }


}
